home *** CD-ROM | disk | FTP | other *** search
/ Tricks of the Mac Game Programming Gurus / TricksOfTheMacGameProgrammingGurus.iso / More Source / Libraries / Digital Money™ Dev Kit / DM Development / DMIdeveloper.h.c < prev    next >
Encoding:
Text File  |  1995-04-11  |  1.9 KB  |  78 lines  |  [TEXT/KAHL]

  1. // ****************************************************************
  2. // Copyright 1995 Digital Money, Inc.
  3. // You may use this source code in your own applications.
  4. //
  5. // REVISION NOTES
  6. // --------------
  7. // These structures are for use in version 4.8 of the
  8. // Digital Money AutoPay software
  9. // For release April 5, 1995
  10. // ****************************************************************
  11.  
  12. typedef struct
  13. {
  14.     int                quantity;
  15.     char            name[40];
  16.     char            prodCode[16];
  17.     char            varCode[16];
  18.     float            price;
  19.     int                maxPurchase;
  20.     int                minPurchase;
  21.     int                editable;
  22.     float            shUSA;
  23.     float            shFOR;
  24. }    purchaseItemType;
  25.  
  26. typedef struct
  27. {
  28.     char            name[40];
  29.     float            price;
  30.     int                maxPurchase;
  31.     int                minPurchase;
  32.     char            prodCode[16];
  33.     float            shUSA;
  34.     float            shFOR;
  35.     int                numVarCodes;
  36.     int                numPurchased;
  37.     char            varCode1[16];
  38.     char            varCode2[16];
  39.     char            varCode3[16];
  40.     char            varCode4[16];
  41.     char            varCode5[16];
  42.     char            varCode6[16];
  43.     char            varCode7[16];
  44.     char            varCode8[16];
  45.     
  46. }    catalogItemType, *catalogItemTypePtr;
  47.  
  48. typedef struct
  49. {
  50.     int                    userAborted;                // AutoPay sends
  51.     int                    userChoseWhichOption;        // these to your app...
  52.     int                    modemPaymentAccepted;
  53.     int                    userSuccessfullyTelUnlocked;
  54.     int                    userSuccessfullyMailUnlocked;
  55.     int                    modemPaymentIncludedReg;
  56.     float                finalPurchaseAmount;
  57.     char                orderNumber[16];
  58.     char                serialNumber[30];
  59.     char                unlockCode[30];    
  60.     char                usersName[80];                
  61.     
  62.     char                programName[30];            // Your app sends these to
  63.     char                programSource[20];            // the AutoPay module...
  64.     char                encodeMeth[30];
  65.     char                privateKey[30];
  66.     char                programID[20];
  67.     char                programPassword[20];
  68.     int                    returnSerialNum;
  69.     int                    areAdditionalItemsForSale;    
  70.     char                *screenText[10];
  71.     int                    textSize[10];
  72.     int                    textFont[10];    
  73.     int                    numItemsInCatalog;
  74.     catalogItemType        *catalogItem[20];    
  75.     int                    numItemsPrepurchased;
  76.     purchaseItemType    prepurchaseItem[6];
  77.     
  78. } digiMonBlock;